package lelouet.datamap;

/** use this instead of the ObjectFactory. It implements easier constructors */
public class DataMapFactory extends ObjectFactory {

	public ServerPoint createServerPoint(String serverName,
			ServerPosition position, double value) {
		ServerPoint ret = createServerPoint();
		ret.setServer(serverName);
		ret.setValue(value);
		ret.setPosition(position);
		return ret;
	}

	public ServerPoint createServerPoint(String serverName, double value) {
		return createServerPoint(serverName, null, value);
	}

	public LocalPoint createLocalPoint(double posX, double posY, double posZ,
			double value) {
		LocalPoint ret = createLocalPoint();
		ret.setPosX(posX);
		ret.setPosY(posY);
		ret.setPosZ(posZ);
		ret.setValue(value);
		return ret;
	}

}
